<?php

class Application_Form_Login extends Zend_Form
{

    public function init()
    {
        $this->setDisableLoadDefaultDecorators(true);
        $this->setDecorators(array(array('ViewScript',array('viewScript' => 'form/_login.phtml')), 'Form'));

        $this->setMethod('post');
        $this->setAction('');
        
        /* Form Elements & Other Definitions Here ... */
        $username = $this->createElement('text', 'email');
        $username->setRequired(true);
        $username->removeDecorator('Label');
        $username->removeDecorator('Errors');
        $username->removeDecorator('HtmlTag');

        $password = $this->createElement('password', 'password');
        $password->setRequired(true);
        $password->removeDecorator('Label');
        $password->removeDecorator('HtmlTag');
        $password->removeDecorator('Errors');

        $signin = $this->createElement('submit', 'signin');
        $signin->setLabel('Đăng nhập')
                ->setIgnore(true);

        $this->addElements(array($username, $password, $signin));
    }


}

